<?php

require_once("tempstats.php");

// Make a new instance of the stats class
$thermdstats = new ThermdStats();

// Start the image output - make a place for all the widgets to go
$thermdstats->ts_startImage(640,217);

// Add all the widgets at the required coordinates
// these require that a ThermdStats object exists and that the image has been started

tsw_imageTitle::drawWidget($thermdstats->img_object,0,2); // this one is centered horizontally automatically
tsw_wind::drawWidget($thermdstats->img_object,413,16);
tsw_pressure::drawWidget($thermdstats->img_object,500,115);
tsw_humidity::drawWidget($thermdstats->img_object,115,178);
tsw_dateTimeSunrise::drawWidget($thermdstats->img_object,0,202); // this one is centered horizontally automatically
tsw_dewPoint::drawWidget($thermdstats->img_object,115,54);
tsw_windChill::drawWidget($thermdstats->img_object,111,117);
tsw_thermometer::drawWidget($thermdstats->img_object,23,20);
tsw_lastRainfall::drawWidget($thermdstats->img_object,0,180); // this one is centered horizontally automatically
tsw_tempRecordHigh::drawWidget($thermdstats->img_object,225,25);
tsw_tempRecordLow::drawWidget($thermdstats->img_object,225,56);
tsw_movingAvg::drawWidget($thermdstats->img_object,230,87);
tsw_yesterdayRain::drawWidget($thermdstats->img_object,205,120);
tsw_thisMonthRain::drawWidget($thermdstats->img_object,205,149);
tsw_todaysRain::drawWidget($thermdstats->img_object,522,139);
tsw_cloud::drawWidget($thermdstats->img_object,418,139);


// Finish the image output - this will complete the image and
// send image headers so this file can be included as an image in any document.
$thermdstats->ts_completeImage();

?>